import rxAjax from '@/assets/js/ajax.js';

//FormDb api接口
const FormDbApi = {};

FormDbApi.baseUrl= '/api-form/form/core/sysDb';

FormDbApi.getByName= function(parameter){
  return rxAjax.postForm(FormDbApi.baseUrl + '/getByName',parameter)
}

FormDbApi.getDbInfoByBodefAlias= function(parameter){
    return rxAjax.postForm(FormDbApi.baseUrl + '/getDbInfoByBodefAlias',parameter)
}

FormDbApi.getDbInfoByBodefId= function(parameter){
    return rxAjax.postForm(FormDbApi.baseUrl + '/getDbInfoByBodefId',parameter)
}

FormDbApi.getBoEntId= function (entId) {
  return rxAjax.get(FormDbApi.baseUrl + '/getBoEntId?entId='+entId)
}

FormDbApi.getDbFieldType= function (dsAlias) {
  return rxAjax.get(FormDbApi.baseUrl + '/getDbFieldType?dsAlias='+dsAlias)
}

export  default FormDbApi;

